package com.toycloud.business.service;

import com.toycloud.business.dto.params.ProductQuantityParams;
import com.toycloud.business.dto.results.CommonResult;
import com.toycloud.business.dto.results.ProductProblemQuantity;
import com.toycloud.business.dto.results.ProductQualityAnalysis;
import com.toycloud.business.dto.results.ProductQualityTrend;
import com.toycloud.common.exception.ServiceException;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author hlchan
 * @version 1.0
 * @date 2024/10/30 15:24
 */
public interface IProductQualityAnalysisService {

    CommonResult<ProductQualityAnalysis>  getProblemList(ProductQuantityParams params);

    CommonResult<ProductQualityAnalysis>  getProblemResolveList(ProductQuantityParams params);

    CommonResult<ProductProblemQuantity> getProblemQuantity();

    CommonResult<ProductQualityTrend> getProblemTrend(ProductQuantityParams params);

    void exportTemplate(HttpServletResponse response) throws ServiceException;
}
